import request from '@/request/request.js';
// import upload from '@/upload/upload.js';

// 不需要token信息得接口

/**
 * @function 获取热门服务
 */
export function getHotServer(param) {
	return request({
		url: '/xcxCommon/getHotServer',
		headers: {
			isToken: false
		},
		method: 'get',
		params: param
	})
}
/**
 * @function 获取所有业务(有分组)
 */
export function getAllServer() {
	return request({
		url: '/xcxCommon/getAllServer',
		headers: {
			isToken: false
		},
		method: 'get'
	})
}

/**
 * @function 分页获取新闻列表
 */
export function getNews(params) {
	return request({
		url: '/xcxCommon/getNews',
		headers: {
			isToken: false
		},
		method: 'get',
		params: params
	})
}
/**
 * @function 获取内部文章详情
 */
export function getNbwzInfo(params) {
	return request({
		url: '/xcxCommon/getNbwzInfo',
		headers: {
			isToken: false
		},
		method: 'get',
		params: params
	})
}


/**
 * @function 分页获取新闻列表
 */
export function getNewsInfo(params) {
	return request({
		url: '/xcxCommon/getNewsInfo',
		headers: {
			isToken: false
		},
		method: 'get',
		params: params
	})
}


/**
 * @function 获取轮播图
 */
export function getBanners(param) {
	return request({
		url: '/xcxCommon/getBanners',
		headers: {
			isToken: false
		},
		method: 'get',
		params: param
	})
}


/**
 * @function 获取轮播图
 */
export function getBannerInfo(param) {
	return request({
		url: '/xcxCommon/getBannerInfo',
		headers: {
			isToken: false
		},
		method: 'get',
		params: param
	})
}


/**
 * @function 获取公告
 */
export function getNotices(param) {
	return request({
		url: '/xcxCommon/getNoticeList',
		headers: {
			isToken: false
		},
		method: 'get',
		params: param
	})
}

/**
 * @function 获取公告详情
 */
export function getNoticeInfo(param) {
	return request({
		url: '/xcxCommon/getNoticeInfo',
		headers: {
			isToken: false
		},
		method: 'get',
		params: param
	})
}
